<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
	
	<link rel="stylesheet" href="css/release.css">
	<script type="text/javascript">
		function sub(){
			document.getElementById("editform").submit();
		}
	</script>
  </head>
  
  <body>
  	<jsp:include page="center.jsp"></jsp:include>
  	<div class="content">
  		<div class="head">
  			<h3>项目设置</h3>
  		</div>
  		<div class="project-form">
  		<form id="editform" action="Edit" method="post">
  			<input type="hidden" name="pro.id" value="${pro.id}" />
  			<div class="form-item">
  				<span class="item-left">
  					<label class="item-label">项目名</label>
  				</span>
  				<span class="item-right">
  					<input name="pro.name" class="item-inputbox" type="text" value="${pro.name}" />
  				</span>
  			</div>
  			<div class="form-item">
  				<span class="item-left">
  					<label class="item-label">项目简介</label>
  				</span>
  				<span class="item-right">
  					<textarea name="pro.intr" class="item-textarea">${pro.intr}</textarea>
  				</span>
  			</div>
  			<div class="form-item">
  				<span class="item-left">
  					<label class="item-label">项目属性</label>
  				</span>
  				<span class="item-right">
  				<s:if test="#session.open==1">
  					<input class="" type="checkbox" name="pro.open" value="1" checked="checked" />公开
  				</s:if><s:else>
  					<input class="" type="checkbox" name="pro.open" value="1"/>公开
  				</s:else>
  				</span>
  			</div>
  		</form>
  			<div class="form-item">
  				<span class="item-left">
  				</span>
  				<span class="item-right">
  					<button class="btn" onclick="sub()">保存</button>
  					<button class="btn">取消</button>
  					<a href="ClosePro?proid=${pro.id}"><button class="btn" style="background:#d95c5c;color:white;">关闭项目</button></a>
  				</span>
  			</div>
  		</div>
  	</div>
  </body>
</html>